<script >
export default{
    data(){
        return{
            msg:'我是子组件',
            text:'text'
        }
    }
}
</script>

<template>
    <div class="content">
        <slot :text="text" name="icom-text"></slot>
        <slot :msg="this.msg"></slot>
        
    </div>
</template>

<style scoped>
.content{
    width:100%;
    background-color: cornsilk;
}
</style>
